
message("vtkgraph:======")
message("CMAKE_CXX_STANDARD = ${CMAKE_CXX_STANDARD}")

find_package(OpenCV REQUIRED )

find_package(VTK REQUIRED)


# ${VTK_LIBRARIES} ${OpenCV_LIBS}

# 显示三角形
ADD_EXECUTABLE(vtkTriangleFilterDemo vtkTriangleFilterDemo.cpp)
TARGET_LINK_LIBRARIES(vtkTriangleFilterDemo ${VTK_LIBRARIES})
vtk_module_autoinit(TARGETS vtkTriangleFilterDemo MODULES ${VTK_LIBRARIES})

# 显示网格
ADD_EXECUTABLE(vtkPointCellDemo vtkPointCellDemo.cpp)
TARGET_LINK_LIBRARIES(vtkPointCellDemo ${VTK_LIBRARIES})

# plane with 4 points
ADD_EXECUTABLE(vtkPlaneWithPoints vtkPlaneWithPoints.cpp)
TARGET_LINK_LIBRARIES(vtkPlaneWithPoints ${VTK_LIBRARIES})

# 点云
ADD_EXECUTABLE(vtkPointCloudDemo vtkPointCloudDemo.cpp)
TARGET_LINK_LIBRARIES(vtkPointCloudDemo ${VTK_LIBRARIES})
vtk_module_autoinit(TARGETS vtkPointCloudDemo MODULES ${VTK_LIBRARIES})


# 组建vtkPolyData-四面体/五面体/六面体
ADD_EXECUTABLE(Vtk_PolydataGraph Vtk_PolydataGraph.cpp)
TARGET_LINK_LIBRARIES(Vtk_PolydataGraph ${VTK_LIBRARIES})
vtk_module_autoinit(TARGETS Vtk_PolydataGraph MODULES ${VTK_LIBRARIES})
